package com.chinasoft.tw.service.DD;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class Xiaodi implements TrueWord{

    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public Xiaodi() {
        this.name = "DD";
        wordList.add("医生一学习就困怎么办");
        wordList.add("为什么网安不用全天实习");
        wordList.add("哥们儿想回家");
        wordList.add("小马做的好！");
    }
    @Override
    public Info getTrueWord() {
        Info info = new Info(name, wordList.get(random.nextInt(wordList.size())));
        return info;
    }
}
